﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SiyinPractice.Framework.Uow
{
    public interface IMySqlUnitOfWorkManager
    {
        IMySqlUnitOfWorkCompleteHandle Begin();

        Task<IMySqlUnitOfWorkCompleteHandle> BeginAsyc();
    }

    public interface IMySqlUnitOfWorkCompleteHandle : IDisposable
    {
        void Commit();

        Task CommitAsync();
    }
}
